package cn.jinjie.day03.test8;

public class Person {

    public static void main(String[] args) {
        CalcImpl c = new CalcImpl();
        testCalc(c);
        CalcInter c1 = new CalcInter() {
            @Override
            public void calc(int num1, int num2) {
                System.out.println(num1 * num2);
            }
        };
        testCalc(c1);
    }

    public static void testCalc(CalcInter c) {
        c.calc(10, 20);
    }
}
